<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/oa/goods.js';
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			
		}
	});
	$('#editGoodsForm').find("input:checkbox, input:radio").not('input.ibtn').uniform();
});
</script>

<#import "/freemarker/modeltype.ftl" as mt>
<#import "/freemarker/modeltype_entity.ftl" as mte>
<div>
	<h3 class="title"><i class="fontello-icon-th-list-1"></i> 编辑物品信息</h3>
</div>
<div class="widget" >
	<div class="widget-content">
		<form id="editGoodsForm">
			<table style="width:400px;"  class="table table-bordered animate2 fadeInUp">
				<tr height="40">
					<td style="width: 100px;">名称</td>
					<td>
						<input class="form-control" type="text" id="name" name="name" value="${(goods.name)!''}" />
						<input type="hidden" id="code" name="code" value="${(goods.code)!''}" />
					</td>
				</tr>
				<tr>
					<td>规格</td>
					<td><input class="form-control" type="text" id="norms" name="norms" value="${(goods.norms)!''}" /></td>
				</tr>
				<tr height="40">
					<td>型号</td>
					<td><input class="form-control" type="text" id="type" name="type" value="${(goods.type)!''}" /></td>
				</tr>
				<tr height="40">
					<td>所属类型</td>
					<td>
						<div class="input-group">
							<span class="btn-group">
								<input id="gtn" class="form-control" type="text" readonly="readonly" size="16"  name="gtn" style="width:100px;" value="${(goods.gtn)!''}">
								<input id="gtc" type="hidden" name="gtc" class="form-control" value="${(goods.gtc)!''}">
								<button class="btn btn-primary" onclick="javascript: selectType_goods();return false;" title="选择该物品所属类型" type="button"><i class="icon-search"></i></button>
								<button class="btn btn-danger" onclick="javascript: $('#gtc').val(''); $('#gtn').val('');" title="去除类型查询条件" type="button"><i class="icon-remove"></i></button>
							</span>
						</div>
					</td>
				</tr>
				<tr>
				<td>所属类别</td>
				<td>
					<select name="sort" id="sort">
						<option value="1">消耗品</option>
						<option value="2">固定资产</option>
					</select>
				</td>
				</tr>
				<!-- <tr height="40">
					<td>是否屏蔽</td>
					<td><@mt.YesOrNo value=((goods.deleted)!false) r=true name='deleted' d=false mc=false /></td>
				</tr> -->
				<tr height="40">
					<td colspan="2" style="text-align: center;">
						<a href="javascript:;" class="btn btn-info" onclick="javascript: saveGoods_goods(); return false;"><i class="icon-save"></i>&nbsp;保&nbsp;&nbsp;存</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="javascript:;" class="btn btn-primary" onclick="javascript: sys_load_handle('goods');return false;"><i class="fontello-icon-block"></i>&nbsp;取&nbsp;&nbsp;消</a>
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>